package patterns.composite.main;

import patterns.composite.core.TreeNode;

public class Tree {
	TreeNode root;
	public Tree(String name){
		this.root = new TreeNode(name);
	}
	public static void main(String[] args) {
		Tree tree = new Tree("A");
		TreeNode nodeB = new TreeNode("B");
		TreeNode nodeC = new TreeNode("C");
		nodeB.add(nodeC);
		tree.root.add(nodeB);
	}
}
